home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1996 September
/
JCSM Shareware Collection (JCS Distribution) (September 1996).ISO
/
tutorial
/
trac.zip
/
EX-II-1.OBJ
< prev
next >
Wrap
Text File
|
1990-01-16
|
1KB
|
39 lines
0010 401000 Read A(0) - A(4)
0011 401005 Read A(5) - A(9)
0012 001901 Load zero
0013 030002 Store at J
0014 2001000 Load A(J)
0015 031801 Store at S
0016 000002 Load J
0017 011902 Add 1
0018 030001 Store at I
0019 1001000 Load A(I)
0020 021801 Subtract S
0021 240023 If negative, skip next instruction
0022 260029 If positive or zero jump around interchange
0023 001801 Load S
0024 031802 Store at T
0025 1001000 Load A(I)
0026 031801 Store at S
0027 001802 Load T
0028 1031000 Store at A(I)
0029 000001 Load I
0030 011902 Add 1
0031 030001 Store at I
0032 021903 Subtract 10
0033 240019 If negative do loop again
0034 001801 Load S
0035 2031000 Store at A(J)
0036 000002 Load J
0037 011902 Add 1
0038 030002 Store at J
0039 021904 Subtract 9
0040 240014 If negative, repeat outer loop
0041 411000 Print A(0) - A(4)
0042 411005 Print A(5) - A(9)
0043 500000 Stop
1901 0 Constant zero
1902 1 Constant 1
1903 10 Constant 10
1904 9 Constant 9
9999 000010 End of code